package c.c.a;

import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;

public class t extends x {
    public String l;
    public String m;
    public ArrayList<String> n;
    public ArrayList<String> o;
    public int p;
    public int q;
    public int r;
    public int s;

    public t(String str, String str2, int i, int i2, int i3, int i4, ArrayList<String> arrayList, ArrayList<String> arrayList2) {
        super("bav2b_click", true, null);
        this.l = str;
        this.m = str2;
        this.n = arrayList;
        this.o = arrayList2;
        this.p = i;
        this.q = i2;
        this.r = i3;
        this.s = i4;
    }

    public void m() {
        if (this.i == null) {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("element_path", this.m);
            jSONObject.put("page_key", this.l);
            ArrayList arrayList = this.o;
            if (arrayList != null && arrayList.size() > 0) {
                jSONObject.put("positions", new JSONArray(this.o));
            }
            arrayList = this.n;
            if (arrayList != null && arrayList.size() > 0) {
                jSONObject.put("texts", new JSONArray(this.n));
            }
            jSONObject.put("element_width", this.p);
            jSONObject.put("element_height", this.q);
            jSONObject.put("touch_x", this.r);
            jSONObject.put("touch_y", this.s);
            this.i = jSONObject.toString();
        }
    }
}
